#!/usr/bin/env python
# _*_coding:utf-8_*_

"""
@Time :    2019/9/21 9:13
@Author:  ThinHeader
@File: urls.py
@Software: PyCharm
"""
from django.conf.urls import url

from open.views import AuthEventView, GHView, GHRedirectView, GHSnsView

urlpatterns = [
    # component_verify_ticket 和 授权事件接收
    url(r'^gh/authorize$', AuthEventView.as_view(), name='open_auth_event'),
    # 公众号授权页面
    url(r'^gh/auth/(?P<shop_id>[0-9]+)$', GHView.as_view(), name='gh_auth'),
    url(r'^gh/redirect/(?P<shop_id>[0-9]+)$', GHRedirectView.as_view(), name='gh_redirect'),
    url(r'^gh/sns$', GHSnsView.as_view(), name='open_gh_sns'),

]